﻿body, html {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

#content {
    flex: 1;
}


/*---------------------------------------------------------------------------------- General */
.foot-contenido {
    margin-top: 70px;
    width: 100vw;
    max-height: 700px;
    overflow: hidden;
    position: relative;
    background-color: #000;
    box-sizing: border-box;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.foot-grid-combinado {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-height: 700px;
}

/*---------------------------------------------------------------------------------- Columnas de contacto */
.foot-col-2 {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #000;
    padding: 20px;
    height: 100px;
}

.foot-texto {
    margin-top: 10px;
    font-size: 18px;
    color: #fff;
    text-align: center;
}

/*---------------------------------------------------------------------------------- Grid 3 (botones) */
.foot-grid3-container {
    flex-direction: column;
    align-items: center;
    grid-row: 2;
    grid-column: span 2;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foot-header-botones {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

.foot-botonera {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

    .foot-botonera button {
        padding: 5px 10px;
        background-color: transparent !important;
        color: #fff;
        border: none;
        cursor: pointer;
    }

/*---------------------------------------------------------------------------------- Grid 4 (copyright) */
.foot-col-4 {
    grid-row: 3;
    grid-column: span 2;
    border: 1px solid #ccc;
    height: 150px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.foot-texto-copy {
    margin-top: 10px;
    font-size: 18px;
    color: #fff;
    text-align: center;
}

/*---------------------------------------------------------------------------------- Formulario */
.foot-input {
    width: calc(100% - 115px);
    padding: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-size: 16px;
    margin-right: 10px;
    margin-left: 5%;
}

.foot-submit {
    padding: 10px 20px;
    border: 0.8px solid #fff;
    border-radius: 4px;
    background-color: #000 !important;
    color: white;
    font-size: 16px;
    cursor: pointer;
}

    .foot-submit:hover {
        background-color: #0056b3 !important;
    }

/*---------------------------------------------------------------------------------- Responsive */
@media screen and (max-width: 768px) {

    .foot-col-2 {
        display: flex; /* ← ahora sí funciona flex-direction */
        flex-direction: column; /* ← apila el texto y el form */
        text-align: center;
        height: auto;
        padding-block: 10% 10%;
        margin-left: 0; /* ← elimina el desplazamiento hacia la izquierda */
        width: 100%; /* ← asegura que ocupe todo el ancho */
        align-items: center; /* ← centra el contenido */
    }

    /* El input y el botón ya los tienes bien */
    .foot-input {
        width: 100%;
        margin: 10px 0;
    }

    .foot-submit {
        width: 100%;
    }
}


@media screen and (max-width: 600px) {
    .foot-texto, .foot-input {
        font-size: 12px;
    }
}

